import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-qms/qms-iqc/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const urgent = (ids) => {
  return request({
    url: '/api/mes-qms/qms-iqc/update-urgent',
    method: 'get',
    params: {
      ids
    }
  });
};

/**
 * 合并检验
 */
export const mergeCheck = (ids) => {
  return request({
    url: '/api/mes-qms/qms-iqc/merging',
    method: 'get',
    params: {
      ids
    }
  });
};

export const handleReport = (data) => {
  return request({
    url: '/api/mes-qms/qms-iqc/examine',
    method: 'post',
    data: data
  });
};

export const getConfigTemplate = (params) => {
  return request({
    url: '/api/mes-qms/qms-inspection-config/get/inspectionPartConfig',
    method: 'get',
    params
  });
};
